package com.example.lianxi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class LianxiApplication {
    class hello{
        private final int a ;
        private final String SEX;

        hello(int a,String SEX) {
            this.a=a;
           this.SEX =SEX;
        }

        public int getA() {
            return a;
        }

        public String getSEX() {
            return SEX;
        }
    }

    public static void main(String[] args) {
        SpringApplication.run(LianxiApplication.class, args);
    }
  @GetMapping
    hello gh(){
        return new hello(12,"男");

  }}
